package com.jichangxiu.server.platform.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.jichangxiu.common.entity.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("platform_config")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "配置实体")
public class PlatformConfig extends BaseEntity {

    @Schema(description = "配置ID")
    @TableId(value = "config_id", type = IdType.ASSIGN_UUID)
    private String configId;

    @TableField("config_no")
    @Schema(description = "配置编号")
    private String configNo;

    @TableField("config_code")
    @Schema(description = "配置标识")
    private String configCode;

    @TableField("config_name")
    @Schema(description = "配置名称")
    private String configName;

    @TableField("config_type")
    @Schema(description = "配置类型")
    private String configType;

    @TableField("config_key")
    @Schema(description = "参数键名")
    private String configKey;

    @TableField("config_value")
    @Schema(description = "参数键值")
    private String configValue;

    @TableField("user_id")
    @Schema(description = "用户ID")
    private String userId;

    @TableField("tenant_id")
    @Schema(description = "租户ID")
    private String tenantId;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;

    @TableField("status")
    @Schema(description = "状态（false停用 true正常）")
    private Boolean status;

    @TableLogic
    @TableField("deleted")
    @Schema(description = "是否删除（0否 1是）")
    private String deleted;

}
